using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
using Domain;

namespace Domain
{
    public class Subscriber : DomainObject<Subscriber>
    {
       [StringLengthValidator(1, 25, Ruleset = "RuleSetA",  MessageTemplate = "Mandatory")]
        public string Name { get; set; }
        [NotNullValidator]
        [EmailAddressValidator]
        public string EmailAddress { get; set; }
        public Subscriber() : base() { }
        public Subscriber(Validator<Subscriber> validationService) : base(validationService) { }
    }


}
